<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Diploma */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="diploma-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'ID')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'XXID')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'BJID')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'GRID')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'XH')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'XSXM')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'XB')->dropDownList([ '男' => '男', '女' => '女', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'SFZHM')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'RXSJ')->textInput(['class'=>'date form-control']) ?>

    <?= $form->field($model, 'LXSJ')->textInput(['class'=>'date form-control']) ?>

    <?= $form->field($model, 'BXXF')->textInput() ?>

    <?= $form->field($model, 'XXXF')->textInput() ?>

    <?= $form->field($model, 'BYND')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'BYZBH')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'BYZ')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'FZRQ')->textInput() ?>

    <?= $form->field($model, 'ZT')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
<script>
    <?php $this->beginBlock('datepicker-config') ?>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        $('.date').each(function(){
            laydate.render({
              elem: this, //指定表单控件
            });
        });
    });
    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['datepicker-config']) ?>
</script>